package com.bwie.utils;

import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;

public class TokenUtils {
    public static String getUserName(String token){
        Claims body = Jwts.parser().setSigningKey("123456")
                .parseClaimsJws(token).getBody();
        return body.get("userName",String.class);
    }
}
